<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="java.io.*,java.util.*,java.text.*" %>
    <%@ page import="edu.student.models.*" %>
     <%@ taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib prefix="sd" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sd:head/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Profile</title>
</head>
<body>
<h1 align="center">Edit profile</h1>
<s:form action="updateProfile">
<table align="center">
<tr><b><h1 align="center"></h1></b></tr>
<tr>
<<%-- td><img src="./images/<s:property value = "friend.image" />" alt="image text" width="150" height="175"/></td> --%> 
<td><table id="text">
	  <td><s:textfield name="username" label = "Name "  value="%{friend.username}"  size="20" /></td>
    <td><s:textfield name="rollNo" label = "Roll Number "  value="%{friend.rollNor}"  size="20" readonly="true"/></td>
    <td><s:textfield name="email" label = "Email Id " value="%{friend.emailId}"  size="20"  /></td>
    <td><sd:datetimepicker label="DOB" name="dob" required="true" 
				displayFormat="yyyy-MM-dd" value="%{friend.dob}"/></td>
			</tr>		
	<!-- s:if test="%{interestList.size()}!=0" -->
    <td><s:checkboxlist label="Interests" name="interests" id="interest" list="interestList"/></td>
    <!-- /s:if -->
    <!-- s:if test="%{selInterestList.size()}!=0" -->
    <td><s:checkboxlist  name="selInterests" id="selInterest" list="selInterestList" value="selInterestList"/></td>
    <!-- /s:if -->
    </table>
	 <s:submit name = "commandButton" id="mysubmit" value="Update" align="center" />
	 </table>
 </s:form>
</body>
</html>